<?php

/** @var \Illuminate\Database\Eloquent\Factory $factory */

use App\Models\Chapters;
use Faker\Generator as Faker;

$factory->define(Chapters::class, function (Faker $faker) {
    return [
        'article_id' => \App\Models\Article::inRandomOrder()->value('id'),
        'category_id' => \App\Models\Category::inRandomOrder()->value('id'),
        'type' => $faker->randomElement([1, 2, 3, 4, 5]),
        'name' => $faker->name,
        'description' => $faker->text(100),
        'content' => $faker->paragraph,
        'status' => $faker->randomElement([0, 1, 2]),
        'soft' => 0,
        'imgs' => $faker->imageUrl(),
        'videos' => $faker->imageUrl(),
    ];
});
